package com.cattest.cattest.interceptor;

import com.dianping.cat.servlet.CatFilter;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author linlx
 * @Date 2021/8/22 15:30
 * @Description
 **/
@Configuration
public class CatFilterConfigure {

//  @Bean
//  public FilterRegistrationBean catFilter() {
//    FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean();
//    CatFilter catFilter = new CatFilter();
//    filterRegistrationBean.setFilter(catFilter);
//    filterRegistrationBean.addUrlPatterns("/*");
//    filterRegistrationBean.setName("cat-filter");
//    filterRegistrationBean.setOrder(1);
//    return filterRegistrationBean;
//  }

}
